package com.tuyue.police.biz;

import com.tuyue.police.bean.EnterpriseBean;
import com.tuyue.police.pojo.Enterprise;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/3/14.
 * @Modified By:
 */
public interface IEnterpriseBiz {

    Enterprise addAndUpdata(Enterprise enterprise);

    Page<Enterprise> findAllByUserId(Long userId,Pageable pageable);

    List<Enterprise> findAllByUserIdList(Long userId);

    List<EnterpriseBean> findTreeByUserId(Long userId);

    Enterprise findOne(Long eId);

    Enterprise uploadImg(Long eid, byte[] file,String filePath, String fileName,String imgAddress);
}
